package com.bwie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bwie.pojo.Blog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 国兴越
 * @version 1.0
 * Create by
 */
@Mapper
public interface BlogMapper extends BaseMapper<Blog> {
    @Select("select * from blog")
    Page<Blog> lists(Page<Blog> list);

    List<Blog> select(String name);

}
